package org.sjs.dreamfly.biz.personal

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import org.sjs.dreamfly.R
import org.sjs.dreamfly.common.base.BaseActivity

class PersonalActivity : BaseActivity() {

    private var personalFragment: PersonalFragment? = null

    override fun onBindViews() {
        if (personalFragment == null) {
            personalFragment = PersonalFragment.newInstance()
        }
    }

    override fun onInitViews() {
    }

    override fun onLoadData(savedInstanceState: Bundle?, newIntent: Intent?) {
        if (personalFragment?.isAdded == false) {
            supportFragmentManager.beginTransaction().add(R.id.container, personalFragment!!).commitNow()
        }
    }
}